

package com.maoshi.shop.dao;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.maoshi.shop.bean.model.User;
import com.maoshi.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

	User getUserByBizUserId(@Param("appId")Integer appId, @Param("bizUserId")String bizUserId);

    void setUserLevelBylevelId(@Param("level")Integer level);

    List<User> selectMemberByEndTime(@Param("endOfDay") DateTime endOfDay);

    void setMaxUserLevelBylevelId(@Param("level")Integer level,@Param("minNeedGrowth")Integer minNeedGrowth, @Param("maxNeedGrowth")Integer maxNeedGrowth);

    void updateBatchById(@Param("userList") List<User> userList);

    IPage<User> getUserPage(PageParam<User> page, @Param("user") User user);

    //合并代码开始
    void updateStatusByUserId(@Param("userId")String userId,@Param("status")Integer status);

    User getUserByUserId(@Param("userId")String userId);
    //合并代码结束
}
